<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <script src="/static/header.js"></script>
<body>


<div class="jumbotron">
<div class="container">
  <h1>ERROR</h1>
  <p> {{ error_msg  }}</p>
 <p ><span id="s1">5</span>秒钟之后跳转回主界面！</p>
</div>
</div>


<script src="/static/jquery-3.3.1.js"></script>
<script src="/static/bootstrap-3.3.7/js/bootstrap.js"></script>
</body>
<script>
    // 每隔一秒钟就修改s1的text
    var currentNum = document.getElementById('s1').innerText;

    var t2 = setInterval(function () {
        currentNum = document.getElementById('s1').innerText;
        document.getElementById('s1').innerText = currentNum - 1;
        if (currentNum == 1) {
            clearInterval(t2);
            location.href = '/systemctl/product?list=1&user={{ user }}';
        }
    }, 1000);
</script>
</html>
